package aplikacja;

import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
import org.eclipse.ui.texteditor.StatusLineContributionItem;

public class ApplicationActionBarAdvisor extends ActionBarAdvisor{

    private static final String GEO_POS  = "geoPosItem";
    private static final String PIX_POS  = "pixPosItem";
    private static final String IMG_DATA = "imgDataItem";

    public ApplicationActionBarAdvisor(IActionBarConfigurer configurer){
        super(configurer);
    }

    protected void makeActions(IWorkbenchWindow window){}

    protected void fillMenuBar(IMenuManager menuBar){}

    private StatusLineContributionItem geoPosItem;
    private StatusLineContributionItem pixPosItem;
    private StatusLineContributionItem imgDataItem;

    
    protected void fillStatusLine(IStatusLineManager statusLine){
        geoPosItem = new StatusLineContributionItem(GEO_POS, true, 50);
        pixPosItem = new StatusLineContributionItem(PIX_POS, true, 50);
        imgDataItem = new StatusLineContributionItem(IMG_DATA, true, 50);
        statusLine.add(geoPosItem);
        statusLine.add(pixPosItem);
        statusLine.add(imgDataItem);
    }
}
